@font-face {
  font-family: x-icon-font;
  src: url('./element-icons.535877f.woff')
}

.r-cropper-mask{
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.5);
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 1000;
  display: none;
  .xc-layer{
    display: inline-block;
    position: relative;
    box-shadow: 0 2px 4px rgba(0,0,0,.5);
    background-color: rgba(255, 255, 255, 0);
    background-image: linear-gradient(to top right,#ccc 25%,transparent 0,transparent 75%,#ccc 0,#ccc),linear-gradient(to top right,#ccc 25%,transparent 0,transparent 75%,#ccc 0,#ccc);
    background-size: 16px 16px;
    background-position: 0 0,8px 8px;
    background-repeat: repeat;
  }
  .xc-layer-inner{
    width: 100%;
    height: 100%;
    position: relative;
  }

  .xc-sbox{
    position: absolute;
    top: 0;
    left: 0;
    cursor: pointer;
    outline: 9999px solid rgba(0,0,0,0.5);
    z-index: 1001;
  }
  .xc-cbox{
    margin: 10px auto 0;
    text-align: center;
  }
  .xc-canvas{
    display: none;
    vertical-align: top;
    box-shadow: rgba(0, 0, 0, 0.5) 0 2px 4px;
  }
  .xc-showimg{
    user-select: none;
    position: absolute;
    top: 0;
    left: 0;
  }
  .xc-layermask{
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 100%;
    z-index: 900;
  }
}
.outer-dom{
  position: relative;
  margin-bottom: 40px;
}
.xc-base-btn{
  position: relative;
  user-select:none;
  box-shadow: 0 3px 1px -2px rgba(0,0,0,.2), 0 2px 2px 0 rgba(0,0,0,.14), 0 1px 5px 0 rgba(0,0,0,.12);
  overflow: hidden;
  cursor: pointer;
  text-align: center;
  background-color: #3f51b5;
  color: #fff;
  display: inline-block;
  padding: 8px 20px;
  box-sizing: border-box;
  font-size: 16px;
  border-radius: 2px;
  .x-btn-mask{
    opacity: 1;
    background-color: transparent;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
  }
  .ripple-circle{
    width: 100%;
    height: 100%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0, 0);
    background-color: #ff4585;
    border-radius: 100%;
    opacity: 0;
  }
}
.xc-btn{
  padding: 0;
  position: absolute;
  line-height: 36px;
  height: 36px;
  bottom: -36px;
  width: 50%;
}
.xc-cbtn{
  left: 0;
  background-color: #fff;
  color: rgba(0,0,0,.87);
  border-bottom-left-radius: 4px;
}
.xc-cutbtn{
  right: 0;
  background-color: #3f51b5;
  color: #fff;
  border-bottom-right-radius: 4px;
}

.r-c-imgs{
  position: relative;
  display: inline-block;

}
.xc-delteicon,.xc-reviseicon,.xc-zoomicon{
  font-family: x-icon-font;
  font-weight: 400;
  font-size: 18px;
  display: inline-block;
  font-style: normal;
  color: #fff;
}
.xc-delteicon{
  &:before{
    content: "\e6d7"
  }
}
.xc-reviseicon{
  &:before{
    content: "\e78c"
  }
}
.xc-zoomicon{
  &:before{
    content: "\e777"
  }
}
.xc-icon{
  margin-right: 5px;
  position: relative;
  top: 50%;
  transform: translate(0, -50%);
  display: inline-block;
  cursor: pointer;
  &:last-of-type{
    margin-right: 0;
  }
}
.xc-simg{
  margin-right: 5px;
  border-radius: 4px;
  overflow: hidden;
  outline: 1px solid #f2f2f2;
  position: relative;
  display: inline-block;
}
.xc-imgmask{
  position: absolute;
  top: 0;
  left: 0;
  background-color: rgba(0,0,0,0.5);
  text-align: center;
  width: 100%;
  height: 100%;
}
.xc-inputmask{
  text-align: center;
  border: 1px solid rgba(51,51,51,0.2);
  position: relative;
  cursor: pointer;
  display: inline-block;
  border-radius: 4px;
  color: rgba(51,51,51,0.6);
}
.xc-upload{
  font-family: x-icon-font;
  font-style: normal;
  font-size: 40px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: inline-block;
  &:before{
    content: "\e6d9"
  }
}
.xc-error{
  position: absolute;
  bottom: -20px;
  color: #f00;
  font-size: 14px;
}
.xc-input{
  display: none;
}
.xc-preview-img{
}
.xc-preview-mask{
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
  background-color: rgba(0,0,0,0.5);
  text-align: center;
  overflow: scroll;
  padding-top: 30px;
  box-sizing: border-box;
}
.xc-circle{
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 100%;
  border: 1px solid #bbb;
  background-color: #fff;
}
.xc-zm-tl{
  left: 0;
  top: 0;
  cursor: nw-resize;
  transform: translate(-50%, -50%);
}
.xc-zm-tc{
  top: 0;
  left: 50%;
  cursor: n-resize;
  transform: translate(-50%, -50%);
}
.xc-zm-tr{
  top: 0;
  right: 0;
  cursor: ne-resize;
  transform: translate(50%, -50%);
}
.xc-zm-rc{
  right: 0;
  top: 50%;
  cursor: ew-resize;
  transform: translate(50%, -50%);
}
.xc-zm-rb{
  bottom: 0;
  right: 0;
  cursor: nw-resize;
  transform: translate(50%, 50%);
}
.xc-zm-bc{
  bottom: 0;
  left: 50%;
  cursor: n-resize;
  transform: translate(-50%, 50%);
}
.xc-zm-bl{
  bottom: 0;
  left: 0;
  cursor: ne-resize;
  transform: translate(-50%, 50%);
}
.xc-zm-lc{
  left: 0;
  top: 50%;
  cursor: ew-resize;
  transform: translate(-50%, -50%);
}
